import request from '@/utils/request'

// 查询薪资明细列表
export function listBreakdown(query) {
  return request({
    url: '/salarydetails/breakdown/list',
    method: 'get',
    params: query
  })
}

// 查询薪资明细详细
export function getBreakdown(id) {
  return request({
    url: '/salarydetails/breakdown/' + id,
    method: 'get'
  })
}

// 新增薪资明细
export function addBreakdown(data) {
  return request({
    url: '/salarydetails/breakdown',
    method: 'post',
    data: data
  })
}

// 修改薪资明细
export function updateBreakdown(data) {
  return request({
    url: '/salarydetails/breakdown',
    method: 'put',
    data: data
  })
}

// 删除薪资明细
export function delBreakdown(id) {
  return request({
    url: '/salarydetails/breakdown/' + id,
    method: 'delete'
  })
}
